package cn.daomeng.firebird.core.serialize;

import java.util.List;

/**
 * @author wf.shu
 * @version 1.0.0.0
 * @since 2019-03-07 14:31
 */
public interface ISerializer {
    byte[] serialize(Object o) throws SerializeException;



    <T> T deserialize(byte[] data, Class<T> tpl) throws SerializeException;

    <T> List<T> deserializeList(byte[] data, Class<?> elementClasses) throws SerializeException;

}
